﻿namespace Yom.WebService
{
    using System.Web;
    using Yom.Common;
    using Yom.WebService.Service;

    public class _Service : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            string Action = Factory.Request("Action");
            HttpResponse Response = HttpContext.Current.Response;
            HttpRequest Request = HttpContext.Current.Request;
            Response.Clear();

            switch (Action)
            {
                case "ValiCode":
                    new ValiCode().OutWrite();
                    break;
                case "FileUpload":
                    new FileUpload().OutWrite();
                    break;
                case "Rss":
                    new GetRss().OutWrite();
                    break;
                default:
                    Response.StatusCode = 0x193;
                    break;
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}